package com.liner.homework.third;

public class Fish extends Animal implements Swim{
    public Fish(String name, int age, String color) {
        super(name, age, color);
    }

    @Override
    void eat() {
        System.out.println(getName() + "it's eating a shrimps");
    }

    @Override
    public void swim() {
        System.out.println(getName() + " swimming...");
    }
}
